function handleClick() {
    console.log('click myBtn...');
}

const main = function() {
    console.log('Here');
    
    const btnElem = document.getElementById('myBtn');
    btnElem.addEventListener('click', handleClick);
    btnElem.addEventListener('click', handleClick);
}

document.addEventListener('DOMContentLoaded', function() {
    main();
});